home *** CD-ROM | disk | FTP | other *** search
Java Source | 1998-01-23 | 715 b | 32 lines |
- import java.lang.*;
- import java.io.*;
-
- public class Thing extends java.lang.Object implements java.io.Serializable
- {
- // Basic Thing type that defines all objects in the Adventure
-
- private String name;
- private String description;
-
- Thing( String aName, String aDescription ) {
- // constructor
- this.name = aName;
- this.description = aDescription;
- }
-
- String getname() {
- return name;
- }
-
- void setname(String aName) {
- this.name = aName;
- }
-
- String getdescription() {
- return description;
- }
-
- void setdescription(String aDescription) {
- this.description = aDescription;
- }
- }